const cartAddAction = () => {
  return {
    type: "ADD",
    payload: {
      num: 1
    }
  }
}

export function sub(num) {
  return dispatch => {
    setTimeout(() => {
      dispatch({
        type: "sub",
        num
      })
    }, 1000)
  }
}

export {
  cartAddAction
}